import request from '@/utils/request.js'
// 获取购物车的数据
export function GetCart() {
	return request.get("http://dida100.com:8888/api/cart",{
		loading:"购物车加载中..."
	})
}
// 添加购物车api
export function AddCart(data) {
	return request.post("http://dida100.com:8888/api/cart", data)
}

export function DelCart(id){
	return request.delete("http://dida100.com:8888/api/cart/"+id)
}
// 修改购物的方法
export function UpdateCart(data){
	return request.put("http://dida100.com:8888/api/cart",data)
}